package com.jdrx.sw.sewage.beans.dto;

import java.time.LocalDate;
import java.time.LocalDateTime;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdrx.platform.commons.rest.beans.enums.EDelFlag;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "新增污泥分析参数", description = "新增污泥分析参数")
@Data
public class SludgeAnalysisAddDTO {
	@NotNull
	@ApiModelProperty(value = "日期yyyy-MM-dd", example = "yyyy-MM-dd", required = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern = "yyyy-MM-dd")
	private LocalDate date;
	
	@ApiModelProperty(value = "车牌号")
	private String vehicleLicense;
	
	@ApiModelProperty(value = "毛重")
	private Double grossWeight;
	
	@ApiModelProperty(value = "皮重")
	private Double tareWeight;
	
	@ApiModelProperty(value = "净重")
	private Double netWeight;
	
	@ApiModelProperty(hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createAt = LocalDateTime.now();
	
	@ApiModelProperty(hidden = true)
	private Long createBy;
	
	@ApiModelProperty(value = "删除标记：0-未删除，1-已删除", hidden = true)
	private Integer deleteFlag = EDelFlag.NORMAL.getKey();
}